package com.ruoyi.binding.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分佣规则和房源绑定对象 am_rule_binding
 * 
 * @author ruoyi
 * @date 2020-07-28
 */
public class AmRuleBinding extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分佣规则和房源绑定表ID */
    private Long id;

    /** 房源表ID */
    @Excel(name = "房源表ID")
    private Long housingResourcessId;

    /** 佣金规则id */
    @Excel(name = "佣金规则id")
    private Long commissionRuleId;

    /** 状态1绑定0未绑定 */
    @Excel(name = "状态1绑定0未绑定")
    private Long status;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedTime;

    public AmRuleBinding() {
    }

    public AmRuleBinding(Long housingResourcessId, Long commissionRuleId) {
        this.housingResourcessId = housingResourcessId;
        this.commissionRuleId = commissionRuleId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHousingResourcessId(Long housingResourcessId) 
    {
        this.housingResourcessId = housingResourcessId;
    }

    public Long getHousingResourcessId() 
    {
        return housingResourcessId;
    }
    public void setCommissionRuleId(Long commissionRuleId) 
    {
        this.commissionRuleId = commissionRuleId;
    }

    public Long getCommissionRuleId() 
    {
        return commissionRuleId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setModifiedTime(Date modifiedTime) 
    {
        this.modifiedTime = modifiedTime;
    }

    public Date getModifiedTime() 
    {
        return modifiedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("housingResourcessId", getHousingResourcessId())
            .append("commissionRuleId", getCommissionRuleId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("modifiedTime", getModifiedTime())
            .toString();
    }
}
